package com.flickx.po;

import com.fasterxml.jackson.annotation.JsonIgnore;

import javax.persistence.*;

/**
 * @author flick on 2017/5/8.
 * @version 1.0
 */
@Entity
public class OrderDetil extends AbstractEntity {
    @JsonIgnore
    @ManyToOne(cascade= CascadeType.ALL,fetch= FetchType.LAZY)
    private Orders order;
    @JsonIgnore
    @ManyToOne(cascade= CascadeType.ALL,fetch= FetchType.LAZY)
    private Goods goods;
    private int num;

    public Orders getOrder() {
        return order;
    }

    public void setOrder(Orders order) {
        this.order = order;
    }

    public Goods getGoods() {
        return goods;
    }

    public void setGoods(Goods goods) {
        this.goods = goods;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }
}
